package com.kay.Utils;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Properties;

/**
 * Created by Kay on 2018/11/23
 */
public class GetProperties {
    public static Properties GetProp(){
        Properties prop = new Properties();
        InputStream in = GetProperties.class.getClassLoader().getResourceAsStream("conf/application.properties");
        try {
            prop.load(new InputStreamReader(in,"utf-8"));
            return prop;
        } catch (IOException e) {
            e.printStackTrace();
            return null;
        }
    }
}
